package com.space.school.services;

import com.space.school.domain.Category;
import com.space.school.domain.Product;
import com.space.school.domain.User;
import com.space.school.utils.PageBean;

import java.util.List;
import java.util.Map;

public interface ProductService {
    PageBean<Product> search(int currentPage, int pageSize, Map<String, String[]> map);
    int delete(int id);
    //    查询id对应数据
    Product findById(int id);
    //    修改状态
    void update(Map<String,String[]> map);
    //    新增
    void save(Product product);
    boolean isInsert(String product_name);
    List<Category> findAll();
    public void updateStatus(int id, String status);
}
